package com.lfs.feishu.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 卡片变量
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
public class TemplateVariables {

    private String title;

    private String subTitle;

    private Pic topPic;

    private String conclusion;

    private List<Content> contentList;

    private String buttonText;

    private Address address;


    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    @Builder
    public static class Content{
        private String title;
        private String content;
    }


    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    @Builder
    public static class Address{
        private String pc_url;
        private String android_url;
        private String ios_url;
        private String url;
    }


    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    @Builder
    public static class Pic{
        private String img_key;
        private Object i18n_img_key;
    }
}
